//
//  YHcollectHeadview.m
//  LyhToolsTest
//
//  Created by LYH on 2018/10/26.
//  Copyright © 2018年 LYH.com. All rights reserved.
//

#import "YHcollectHeadview.h"

@implementation YHcollectHeadview
- (instancetype)initWithFrame:(CGRect)frame
{
    self=[super initWithFrame:frame];
    if (self) {
        [self Titlelab];
    }
    return self;
}
- (UILabel *)Titlelab
{
    if (!_Titlelab) {
        _Titlelab = [[UILabel alloc]init];
        _Titlelab.textColor = [UIColor darkTextColor];
        _Titlelab.textAlignment = NSTextAlignmentCenter;
        _Titlelab.font = [UIFont systemFontOfSize:14];
        [self addSubview:_Titlelab];
        [_Titlelab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.mas_left).offset(15);
            make.centerY.equalTo(self);
        }];
    }
    return _Titlelab;
}
@end
